var rewire = require("rewire")
var cache = rewire('../common/cache.cjs')
var assert = require('assert')
const state = rewire('../state.cjs')
const {uuid, sleep} = rewire('../common/utils.cjs')
const {parallelIter} = rewire('../common/combinator.cjs')

(async function(){
  await cache.saveCache('testCache', {'qq': '123435454676', 'name': 22334})

  assert.deepEqual(
    await cache.getCache('testCache'),
    {'qq': '123435454676', 'name': 22334},
    'cache.getCache'
  )
})()

